<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FocusWithIn</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
           position: fixed;
           top: 0;
           left: 0;
           width: 100%;
           height: 100%;
           background-color: rgba(0, 0, 0, .3);
           display: flex;
        }
        .login-box {
            width: 300px;
            height: 250px;
            border-radius: 2px;
            background-color: #fff;
            margin: auto;
            padding: 10px 16px;
            position: relative;
            box-sizing: border-box;
        }
        .login-box img {
            position: absolute;
            left: 50%;
            margin-left: -40px;
            width: 80px;
            top: -32px;
            display: none;
        }
        .login-box img:first-child {
            display: block;
        }
        .login-box:focus-within img:first-child {
            display: none;
        }
        .form-item:focus-within img {
            display: block;
        }
        .text {
            font-size: 16px;
            font-weight: bold;
        }
        .close {
            position: absolute;
            width: 16px;
            height: 16px;
            transform: rotate(45deg);
            right: 10px;
            top: 10px;
            cursor: pointer;
            transition: .3s;
        }
        .close:hover .before, .close:hover .after {
            background-color: #000;
        }
        .close .before {
            display: block;
            width: 1px;
            height: 12px;
            background-color: #ccc;
            transform: translate(7px, 2px);
        }
        .close .after {
            display: block;
            width: 12px;
            height: 1px;
            background-color: #ccc;
            transform: translate(1px, -5px);
        }
        .form-item {
            margin-bottom: 20px;
        }
        .form-item input {
            display: block;
            width: 100%;
            height: 40px;
            line-height: 40px;
            font-size: 16px;
            outline: none;
            box-sizing: border-box;
        }
        .login-button {
            display: block;
            width: 100%;
            height: 30px;
            line-height: 30px;
        }
    </style>
</head>
<body>
    <!-- https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/normal.0447fe9.png -->
    <!-- https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/greeting.1415c1c.png -->
    <!-- https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/blindfold.58ce423.png -->
    <div class="login-box">
        <img src="https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/normal.0447fe9.png" alt="">
        <div class="form-item">
            <span class="text">登录</span>
            <span class="close">
                <div class="before"></div>
                <div class="after"></div>
            </span>
        </div>
        <div class="form-item">
            <input type="text">
            <img src="https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/greeting.1415c1c.png" alt="">
        </div>
        <div class="form-item">
            <input type="text">
            <img src="https://sf3-scmcdn2-tos.pstatp.com/xitu_juejin_web/img/blindfold.58ce423.png" alt="">
        </div>
        <button class="login-button">登录</button>
    </div>
</body>
</html>